#ifndef __GAME_MAP_H__
#define __GAME_MAP_H__

#include <vector>
#include <unordered_map>


class GameMap
{
private:
    /* data */
public:
    GameMap(int type_id, int unique_id);
    ~GameMap();

    void Init(int length, int width);
    void AddPlayer(int player_id, int x, int y);
    void RemovePlayer(int player_id);
    std::string ShowMapInfo(int player_id);

public:
    std::vector<std::vector<int>> map_;
    int length_;
    int width_;
    std::unordered_map<int, std::pair<int, int>> player2pos_;

    int type_id_;
    int unique_id_;
};


#endif  // __GAME_MAP_H__